package com.japp.sys.web;

import java.math.BigDecimal;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		final BigDecimal TEN_CENTS = new BigDecimal(".10");
		int itemsBought = 0;
		BigDecimal funds = new BigDecimal("1.00");
		for(BigDecimal price = TEN_CENTS;funds.compareTo(price)>=0;price = price.add(TEN_CENTS)){
			itemsBought++;
			funds = funds.subtract(price);
		}
		System.out.println(itemsBought + "items");
		System.out.println(funds);
		long val = (long) 2.3;
		System.out.println(val);
	}

}
